import ArrayStack from './01_实现栈结构Stack(数组)'

const stack1 = new ArrayStack()
stack1.push('aaa')
stack1.push('bbb')
stack1.push('ccc')
console.log(stack1.peek()) //ccc
console.log(stack1.pop()) //ccc
console.log(stack1.pop()) //bbb
console.log(stack1.pop()) //aaa

console.log(stack1.isEmpty())//true
console.log(stack1.size())//0